//This modules exports all the allies for a specific function
//also,this file will briefly introduce the functionalities of the modules.

module.exports = {
    
    /*allies for homepages.
      The homepage will check the user stats and then display the contents 
      in the index.ejs file according to the user stats.
      avaliable params: 
      User user,            

    */
    homepage: ["/","/index.html"],

    /*allies for reg pages.
      The server will check whether the user has logged in,and if that is the 
      case,then it will redirect to the homepage.
      avaliable params:
      Error error.(error may be a string,and in the most case <%= error %> will
      print the error message.)
     */
    reg     : ["/reg","reg.html"],
    /*allies for login pages.
      The server will check whether the user has logged in,and if that is the 
      case,then it will redirect to the homepage.
      avaliable params:
      Error error.(error may be a string,and in the most case <%= error %> will
      print the error message.)
     */
    
    
    login   : ["/login","login.html"],

    /*allies for logout pages.
      The server will check whether the user has logged in,and if that is 
      not the case,then it will redirect to the login pages.Otherwise,it will
      redirect to the homepage.
      avaliable params:
      (This is a virtual page,that is ,it only serves as a redirect tool.)
    */

    logout  : ["/logout","logout.html"],
    
    //to be determined
    user    : ["/user"],

    user_active: ["/user/active"],

};
